package helper

import (
	"gin-demo/container"
	dao "gin-demo/dao/operate"
	service "gin-demo/service/operate"
)

// 运维组件向容器注册

func OperateHelper() {
	userHelper()
	recordHelper()
}

func userHelper() {

	container.Add("userDao", dao.UserDaoImp{})
	container.Add("userService", service.UserServiceImp{})
}

func recordHelper() {

	container.Add("recordDao", dao.RecordDaoImp{})
	container.Add("recordService", service.RecordServiceImp{})
}
